Set up the Power Operation Runtime for basic reports
Follow these steps to add new items to the project, add the necessary INI parameters for CtAPI and basic report security, and create the CtAPI connection for reporting.
For a complete discussion of reporting web application URLs, see Create and view basic reports.
Create the menu items for report page
The following steps describe how to interact with the reporting web application via the runtime environment:
- In Power Operation Studio, click Visualization
> Menu Configuration.
- Add the new menu item that you want for each of your basic reports.
- In each of these menu items, in the Menu Command line, add the Cicode method that will display a report tab. You can create your own custom method or use the default:
PLS_ReportDsp(STRING sIPAddress, STRING sName, STRING sOptions = "", STRING sTitle="")
Examples:
PLS_ReportDsp(“10.10.10.10", "SingleDeviceReport”, "ShowConfiguration/MyConfiguration", “Single Device Usage Report”);
or
PLS_ReportDsp(“10.10.10.10", "SingleDeviceReport”, "", “Single Device Usage Report”);
which opens an unconfigured single device usage report at the parameters entry page.
Add the following INI parameters
To allow trend queries that yield the desired amount of historical data:
[Trend]MaxRequestLength =100000000,
allowable range: 1–100000000
(example: a value of 70080 would yield two years of data for one device/one topic, assuming 15-minute trends)
To allow CtAPI to connect remotely:[CtAPI]Remote = 1
To define a privilege level for users to view reports:[Reporting]PrivLevel - Default = 0
To define an area for users to view reports:[Reporting]Area - Default = 0
See also: